package com.jhs.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jhs.boot.system.model.entity.SysNodeRoute;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jhs.boot.system.model.query.SysNodeRouteQuery;
import com.jhs.boot.system.model.vo.SysNodeRouteVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 节点和路由关联Mapper接口
 *
 * @author zxy
 * @since 2025-11-22 11:28
 */
@Mapper
public interface SysNodeRouteMapper extends BaseMapper<SysNodeRoute> {

    /**
     * 获取节点和路由关联分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<SysNodeRouteVO>} 节点和路由关联分页列表
     */
    Page<SysNodeRouteVO> getSysNodeRoutePage(Page<SysNodeRouteVO> page, SysNodeRouteQuery queryParams);

    List<Long> listRoteNodesIds(@Param("routeId") Long routeId);
}
